#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    int n,m,a[100010];
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>m;
        for(int j=1;j<=m;j++)cin>>a[i];
    }
    cout<<"1\n"<<"0\n"<<"8";
    return 0;
}
